import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 列表查询 /ttVsDaily/page
export const queryList = (params) => axios.post(`${SERVER.RETAIL}/ttVsDaily/page`, params)

// 详情  /ttVsDaily/selectOne
export const queryDailyByDate = (params) => axios.post(`${SERVER.RETAIL}/ttVsDaily/selectOne`, params)

// 导出 /ttVsDaily/excel
export const exportExcel = (params) => axios.post(`${SERVER.RETAIL}/ttVsDaily/excel`, params, {
  responseType: 'blob'
})


// 审批 /ttVsDaily/submit1
export const submitByStatus = (params) => axios.post(`${SERVER.RETAIL}/ttVsDaily/checkStatus`, params)

// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);
